<?php
$this->breadcrumbs = array(
    'Sản phẩm' => array('/category'),
    $model->name,
);
?>

<div class="prepend-1 span-10" id="shopcontent">
    <p>Sản phẩm <?php echo $model->name; ?></p>
    <?php
    $this->widget('zii.widgets.CDetailView', array(
        'data' => $model,
        'attributes' => array(
            'id',
            'name',
            'price',
            'amount',
            'description',
            //'image',
            //'date_added',
            //'last_update',
            'category.name',
            'manufacturer.name',
        //'warehouse_id',
        ),
    ));
    ?>
</div>

<div class="span-12 last" id="shopcontent">

    <h1><?php echo $model->name; ?></h1>

    <h2><?php echo $model->description; ?></h2>

    <?php
    echo CHtml::image(Yii::app()->baseUrl . '/images/' . $model->image);
    ?>

    <?php
//    if (!Yii::app()->user->isGuest) {
//        $this->renderPartial('/product/addToCart', array('model' => $data));
//    }
    ?>

</div>

<div class="clear"> </div>

